<template>
    <div id="props">
      <h1>大标题</h1>
      <subs :id="id" @send="getdata"></subs>
    </div>
</template>

<script>
  import Subs from './Subs'
    export default {
        name: "props",
      data(){
          return{
            id:100
          }
      },
      components:{
          Subs
      },
      methods:{
          getdata:function (input) {
            alert(input);
          }
      }
    }
</script>

<style scoped>

</style>
